package org.student.entity;

import java.util.List;

import javax.persistence.CascadeType;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.OneToMany;

/**
 * 项目名称 : 学生管理系统
 * 类名称: StuSys_ClassInfo
 * 类描述: 教室信息类
 * 创建人: 严植培
 * 创建时间: 2011-9-23 下午03:24:01
 */
@Entity
public class StuSys_ClassInfo {

	private int id; // 自增编号
	private String className; // 班级名称�
	private String manager; // 班主任
	private String specialtyName; // 专业名称
	private String insititueName; // 学院名称
	private int total; // 总人数
	private String memo; // 备注
	private List<StuSys_Student> studentList ; // 学生集合
	private List<StuSys_Subject> subjectList ; // 课程集合
	
	@Id
	@GeneratedValue
	public int getId() {
		return id;
	}

	public void setId(int id) {
		this.id = id;
	}
	
	@OneToMany(mappedBy = "classInfo", cascade = CascadeType.ALL)
	public List<StuSys_Student> getStudentList() {
		return studentList;
	}

	public void setStudentList(List<StuSys_Student> studentList) {
		this.studentList = studentList;
	}
	
	@OneToMany(mappedBy = "classInfo",cascade = CascadeType.ALL)
	public List<StuSys_Subject> getSubjectList() {
		return subjectList;
	}

	public void setSubjectList(List<StuSys_Subject> subjectList) {
		this.subjectList = subjectList;
	}

	public String getClassName() {
		return className;
	}

	public void setClassName(String className) {
		this.className = className;
	}

	public String getManager() {
		return manager;
	}

	public void setManager(String manager) {
		this.manager = manager;
	}

	public String getSpecialtyName() {
		return specialtyName;
	}

	public void setSpecialtyName(String specialtyName) {
		this.specialtyName = specialtyName;
	}

	public String getInsititueName() {
		return insititueName;
	}

	public void setInsititueName(String insititueName) {
		this.insititueName = insititueName;
	}

	public int getTotal() {
		return total;
	}

	public void setTotal(int total) {
		this.total = total;
	}

	public String getMemo() {
		return memo;
	}

	public void setMemo(String memo) {
		this.memo = memo;
	}

}
